package crm8000.services

import crm8000.Models.MenuItem
import grails.transaction.Transactional

@Transactional
class MainMenuService {

    def getMainMenuItems() {
		def result = new MenuItem()
		
		def mi = new MenuItem(caption: "文件")
		result.children.add(mi)
		mi.children.add(new MenuItem(caption: "file1"))
		mi.children.add(new MenuItem(caption: "file2"))
		mi.children.add(new MenuItem(caption: "file3"))

		result.children.add(new MenuItem(caption: "编辑"))
		result.children.add(new MenuItem(caption: "代码"))
		
		return result
    }
}
